package com.xyh.transaction.service.imp;

import com.xyh.transaction.common.Constant;
import com.xyh.transaction.entity.vo.HotVo;
import com.xyh.transaction.service.HotService;
import com.xyh.transaction.utils.ImageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class HotServiceImpl implements HotService {

    @Autowired
    private ImageUtils imageUtils;

    @Override
    public List<HotVo> getHotList() {
        // 写死数据测试
        ArrayList<HotVo> hotVos = new ArrayList<>();
        hotVos.add(new HotVo(1, imageUtils.buildImageUrl(Constant.DEFAULT_HOT),"特惠推荐","它们最实惠"));
        hotVos.add(new HotVo(1, imageUtils.buildImageUrl(Constant.DEFAULT_HOT),"爆款推荐","它们最受欢迎"));
        hotVos.add(new HotVo(1, imageUtils.buildImageUrl(Constant.DEFAULT_HOT),"一站买全","使用场景下精心优选"));
        hotVos.add(new HotVo(1, imageUtils.buildImageUrl(Constant.DEFAULT_HOT),"领券中心","更多超值优惠券"));
        return hotVos;
    }
}
